	<?php
			//echo 'Hello to PHP';
			if (isset($_REQUEST['sendmail'])) {
			//if "email" is filled out, send email
            //send email
			$name = $_REQUEST['name'];
            $email = $_REQUEST['email'];
            $phonenumber = $_REQUEST['phonenumber'];
            $message = $_REQUEST['message'];
			
            mail("function@functionbook.in","Request for FunctionHall Booking Details From ".$name,"Contact Name: ".$name."\nFrom: ".$email."\nContact Number:".$phonenumber."\n\nMessage: ".$message);
            $status="Message Sent Successfully";
			echo'<script> window.location="contact.php?status=Message Sent Successfully"; </script> ';
        } else {
		//if "email" is not filled out, display the form
            
        }
     ?>